package com.itheima.stock.service.impl;

import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.service.StockService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zby
 * @created 2024-06-23 16:34
 * @description  股票业务实现类
 */
@Service
public class StockServiceImpl implements StockService {


    private final StockBusinessMapper stockBusinessMapper;

    public StockServiceImpl(StockBusinessMapper stockBusinessMapper) {
        this.stockBusinessMapper = stockBusinessMapper;
    }


    @Override
    public List<StockBusiness> getStockBusiness() {

        return stockBusinessMapper.selectAll();
    }
}
